home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / HPACK78S.ZIP / wildcard.h < prev   
Text File  |  1992-07-20  |  1KB  |  34 lines

  1. /****************************************************************************
  2. *                                                                            *
  3. *                            HPACK Multi-System Archiver                        *
  4. *                            ===========================                        *
  5. *                                                                            *
  6. *                        Header File for the Wildcard Routines                *
  7. *                            WILDCARD.H  Updated 20/06/90                    *
  8. *                                                                            *
  9. * This program is protected by copyright and as such any use or copying of    *
  10. *  this code for your own purposes directly or indirectly is highly uncool    *
  11. *                      and if you do so there will be....trubble.                *
  12. *                 And remember: We know where your kids go to school.            *
  13. *                                                                            *
  14. *        Copyright 1989, 1990 Peter C.Gutmann.  All rights reserved            *
  15. *                                                                            *
  16. ****************************************************************************/
  17.  
  18. /* The maximum allowable length of the destination string for the
  19.    compileString() function */
  20.  
  21. #define MATCH_DEST_LEN    100
  22.  
  23. /* Whether a given string contains wildcards or not */
  24.  
  25. #define HAS_WILDCARDS        TRUE
  26. #define NO_WILDCARDS        FALSE
  27.  
  28. /* Prototypes for functions in WILDCARD.C */
  29.  
  30. BOOLEAN hasWildcards( char *string, int length );
  31. BOOLEAN strHasWildcards( char *string );
  32. int compileString( const char *src, char *dest );
  33. BOOLEAN matchString( const char *src, const char *dest, const BOOLEAN hasWildcards );
  34.